<script type="text/javascript">
	function freeProductPrev(number){
	
		var prev = <?php echo $curPage; ?> - number;
		var url = "<?php echo SystemProperties::$app_host;?>"+"/user/listUser/"+prev+'/0/0/<?=$order?>';
		//alert(url);
		doPost(url,'commentsProfile','productFreeDiv');
	}

	function freeProductNext(number){
		var next = <?php echo $curPage; ?> + number;
		var url = "<?php echo SystemProperties::$app_host;?>"+"/user/listUser/"+next+'/0/0/<?=$order?>';
		//alert(url);
		doPost(url,'commentsProfile','productFreeDiv');		
	}
	function freeProductFirst(){
		var url = "<?php echo SystemProperties::$app_host;?>"+"/user/listUser/1"+'/0/0/<?=$order?>';
		//alert(url);
		doPost(url,'commentsProfile','productFreeDiv');		
	}
	function freeProductLast(){
		var url = "<?php echo SystemProperties::$app_host;?>"+"/user/listUser/100000/0/0/<?=$order?>";
		//alert(url);
		doPost(url,'commentsProfile','productFreeDiv');		
	}
</script>


<table border="0"  cellpadding="0" cellspacing="1" class="list" >
 <tr >
       <td align="center"   style="line-height:20px; padding:6px 6px 6px 6px"> UID </td>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px"> 姓名 </td>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px"> 安装游戏时间 </td>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px"> 当前积分 </td>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px"> 申领次数 </td>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px">兑换次数 </td>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px">消费积分</td>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px">手机</td>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px">邮箱</td>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px">地址</td>
		<?php if (SystemProperties::$platform=='renren') { ?>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px">身份证</td>
		<?php } ?>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px">试用记录 </td>
		<td align="center"   style="line-height:20px; padding:6px 6px 6px 6px">兑换记录 </td>
</tr>
<?php if(isset($userList) && !empty($userList)){ ?>
<?php foreach($userList as $key=>$profiles){ ?>
<?php 
$user_url = SystemProperties::get_profile_url($profiles['g_users']['g_uid']);
?>
<script type="text/javascript">
</script>
 <tr>
       <td align="center"   style="line-height:20px; padding:6px 6px 6px 6px"><a href="<?=$user_url?>" target="_blank"><?php echo $profiles['g_users']['g_uid']?></a>　 </td>
       <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><?php echo $profiles['g_users']['g_name']?><?php echo !empty($profiles['g_users']['g_realname'])?('('.$profiles['g_users']['g_realname'].')'):''?></td>
       <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><?php echo date('Y-m-d H:i:s',strtotime($profiles['g_users']['g_add_time']));?></td>
       <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><?php echo $profiles['g_users']['g_money']?></td>
       <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><?php echo $profiles['g_users']['g_apply_time']?></td>
       <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><?php echo $profiles['g_users']['g_exchange_time']?></td>
       <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><?php echo $profiles['g_users']['g_money_use']?></td>
       <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><?=$profiles['g_users']['g_phone']?></td>
    <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><?=$profiles['g_users']['g_mail']?></td>
    <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><?=$profiles['g_users']['g_address']?></td>
    <?php if (SystemProperties::$platform=='renren') { ?>
    <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><?=$profiles['g_users']['g_idcard']?></td>
    <?php } ?>
      <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><a href="<?php echo SystemProperties::$app_host;?>/user/getApplys/<?php echo $profiles['g_users']['g_id']; ?>" >详细</a></td>
       <td align="center"  style="line-height:20px; padding:6px 6px 6px 6px; border-bottom:#ff9600 "><a href="<?php echo SystemProperties::$app_host;?>/user/getExchangs/<?php echo $profiles['g_users']['g_id']; ?>" >详细</a></td>
</tr>
	
	<?php }?>
	</table>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  	<?php if(!empty($userList)){ ?>
            <tr>
    	<td colspan="12"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="page">
      <tr>
        <td width="30%"></td>
       <td width="70%" align="center">
        <div class="div1"><ul class="d4"><li class="f"><a href="javascript:freeProductFirst();">首页</a></li><li title="上一页"><a href="javascript:freeProductPrev(1);">上一页</a></li><li title="上十页"><a href="javascript:freeProductPrev(10);"><<</a></li><li class="c"><?php echo $curPage;?>/<?php echo $totalPage;?></li><li title="下十页"><a href="javascript:freeProductNext(10);">>></a></li><li title="下一页"><a href="javascript:freeProductNext(1);">下一页</a></li><li class="l"><a href="javascript:freeProductLast();">尾页</a></li></ul></div><div class="div1"><ul class="s2"><li></li></ul></div>        </td>
      </tr>
          <?php } ?>
</table>
	<?php } ?>